package ca.eloas.judging.rest.module;

import ca.eloas.judging.rest.module.WebModule;
import ca.eloas.restsupport.Module;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;

/**
 * @author JP
 */
public class InjectorListener extends GuiceServletContextListener {

    @Override
    protected Injector getInjector() {


        Injector injector = Guice.createInjector(
                new WebModule(),
                new Module()
        );

        return injector;
    }
}
